import {Pipe, PipeTransform} from '@angular/core';
import {CommonParams} from '../utils/common-params';

@Pipe({
  name: 'position'
})
export class PositionPipe implements PipeTransform {

  transform(value: number, ...args: unknown[]): unknown {
    return CommonParams.POSITIONS[value - 1].name;
  }

}
